#include "GearBoxIdle.h"
#include "WPILib.h"

GearBoxIdle::GearBoxIdle() {
	// Use requires() here to declare subsystem dependencies
	Requires(transmission);
}

// Called just before this Command runs the first time
void GearBoxIdle::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void GearBoxIdle::Execute() {
	transmission->valveOff();
	transmission->doNothing();
	SmartDashboard::Log(transmission->getSelectedGearName(), "Selected gear");
}

// Make this return true when this Command no longer needs to run execute()
bool GearBoxIdle::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void GearBoxIdle::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void GearBoxIdle::Interrupted() {
}
